<?php
 defined('RUN')or die('No access');function error_show($a=NULL){header("HTTP/1.0 404 Not Found");$b='
			<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
			<html lang="en">
				<head>
					<title>Error !</title>
					<style>
						body {
							background: #000;
							color: #fff;
						}						
						h1, h3, h4, h5 {
							text-align: center;
						}
						h4 > a {
							color: white;
						}
						h1 {
							margin-top: 100px;
						}
						h3 {
							margin: 20px 100px;
							background: #fff;
							color: #000;
							padding: 10px;
							border-radius: 10px;
							-moz-border-radius: 10px;
							-webkit-border-radius: 10px;
						}
					</style>
				</head>
				<body>
					<h1>Error !</h1>
					<h3>'.$a.'</h3>
					<h4><a href="'.URL::base().'" title="Back to home">Back to Home</a></h4>
					<h5>SVDM Framework 11.0 - Copyright &copy; 2012 - KhanhND</h5>
				</body>
			</html>
		';Url::redirect(Url::base());die($b);}function filter_html($c){return(is_array($c))?array_map('filter_html',$c):Security::antiXss($c);}function svdm_autoload($d){$e=SYS_PATH.strtolower($d).EXT;if(file_exists($e)){include $e;}else{error_show('Class `'.$d.'` is not found !');}}spl_autoload_register('svdm_autoload');if(ini_get('register_globals')){$f=array($_REQUEST,$_SESSION,$_SERVER,$_FILES);foreach($f as $g){foreach(array_keys($g)as $h){unset(${$h});}}}if(ini_get('magic_quotes_gpc')){function clean($c){if(is_array($c)){foreach($c as $h=>$i){$c[clean($h)]=clean($i);}}else{$c=stripslashes($c);}return $c;}$_GET=clean($_GET);$_POST=clean($_POST);$_REQUEST=clean($_REQUEST);$_COOKIE=clean($_COOKIE);}$_POST=filter_html($_POST);$_REQUEST=filter_html($_REQUEST);$_COOKIE=filter_html($_COOKIE);